<?php

class Core_Backend_Component_Foundation_View_Industry_Import extends Core_Backend_Share_View_Form {

    protected function buildToolbar($toolbar){
    	$group = $toolbar->createGroup('back');
        $group->addLink($this->getHistoryUrl('foundation/industry/index'), $this->__('share.button.back'));
        $group = $toolbar->createGroup('save');
        $group->addButton($this->__('share.button.save'))
        	  ->bindEvent('click', "Kdf.Ui.getForm('".$this->getForm()->getId()."').submit('".$this->getUrl(NULL, 'import')."')");
        parent::buildToolBar($toolbar);
    }

    protected function buildForm($form){
        $form->setAttribute('enctype','multipart/form-data');
        $form->addFileField($this->__('foundation.label.industry_data'),'file','file');
        parent::buildForm($form);
    }
}